{% extends 'my_admin/table_index.html' %}
{% load tags %}


{% block continer %}
    {% render_all_related_objs objs %}
    <form method="post" action="{% url 'do_delete' app_name table_name %}">
        {% csrf_token %}
        {% render_delete_ids objs %}
        <input type="submit" class="btn btn-danger" value="确认删除">
        {% if nid %}
            <a class="btn btn-info" href="{% url 'obj_change' app_name table_name nid %}">取消并返回</a>
        {% else %}
            <a class="btn btn-info" href="{% url 'table_detail' app_name table_name %}">取消并返回</a>
        {% endif %}
    </form>


{% endblock %}

